import { apiHttp  } from '@/utils/axios';

export interface articleModel {
  articleId: string;
  articleTitle: string;
  articleAuthor?: string;
  articlePubDate?: number;
  reprintUrl?: string;
  articleSummary?: string;
}

export const searchApi = params => {
  return apiHttp.post({ url: '/companyList', params });
}

export const getArticleApi = params => {
  return apiHttp.post({ url: '/article/listPage', params });
}

//全局验证码
export const getCaptchaApi = () => {
  return apiHttp.get({ url: '/verify/captcha'});
}

export const getVerificationApi = params => {
  return apiHttp.post({ url: '/verify/verification', params }, { isTransformRequestResult: false });
}


export const sitePvApi = () => {
  return apiHttp.post({ url: '/data/sitePv' });
}

export const getArticleListApi = params => {
  return apiHttp.post({ url: '/cms/item/articleList', params });
}
